package com.cashmama.market.api.application.controller.user.request;

import com.cashmama.market.api.infras.utils.ParamsValidateUtil;
import com.cashmama.market.api.infras.utils.StringUtils;
import com.fqgj.common.api.ParamsObject;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2020-03-29 19:35
 **/
public class UserDifficultiesFeedBackRequest extends ParamsObject {

    /**
     * 困难
     */
    private String difficulties;
    /**
     * 希望得到的帮助
     */
    private String helpContent;

    public String getDifficulties() {
        return difficulties;
    }

    public UserDifficultiesFeedBackRequest setDifficulties(String difficulties) {
        this.difficulties = difficulties;
        return this;
    }

    public String getHelpContent() {
        return helpContent;
    }

    public UserDifficultiesFeedBackRequest setHelpContent(String helpContent) {
        this.helpContent = helpContent;
        return this;
    }

    @Override
    public void validate() {
        ParamsValidateUtil.checkParams(StringUtils.isEmpty(difficulties), "difficulties can not be empty");
        ParamsValidateUtil.checkParams(StringUtils.isEmpty(helpContent), "helpContent can not be empty");
    }
}
